<template>
  <div class="page contradiction">
    <div id="map" class="map"></div>
    <div class="page-container">
      <el-row :gutter="15" type="flex" style="width: 100%;height: 100%;margin: 0">
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="年度调解数据">
              <AnnualMediationData />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="调解方式分布">
              <MediationMode />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="解决途径">
              <SolutionWay />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="10" class="col">
          <el-row class="row">
            <TopNumber />
          </el-row>
          <el-row class="row">
            <Card title="矛盾纠纷调解实时信息">
              <MediationInformation />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="纠纷类型分布">
              <DisputeType />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="典型案例">
              <TypicalCase />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="调解流程">
              <MediationProcess />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="调解效果">
              <MediationEffect />
            </Card>
          </el-row>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
import Card from '@/components/Card.vue'
import AnnualMediationData from '@/components/Contradiction/AnnualMediationData.vue'
import MediationMode from '@/components/Contradiction/MediationMode.vue'
import SolutionWay from '@/components/Contradiction/SolutionWay.vue'
import DisputeType from '@/components/Contradiction/DisputeType.vue'
import TopNumber from '@/components/Contradiction/TopNumber.vue'
import MediationInformation from '@/components/Contradiction/MediationInformation.vue'
import TypicalCase from '@/components/Contradiction/TypicalCase.vue'
import MediationProcess from '@/components/Contradiction/MediationProcess.vue'
import MediationEffect from '@/components/Contradiction/MediationEffect.vue'

export default {
  components: { MediationEffect, MediationProcess, TypicalCase, MediationInformation, TopNumber, DisputeType, SolutionWay, MediationMode, AnnualMediationData, Card }

}
</script>
<style lang="scss" scoped>
.page.contradiction{
  .map{
    width: 100%;
    height: calc(100% - 60px);
    z-index: 0;
    position: absolute;
    left: 0;
    top: 60px;
  }
  .page-container{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    .col{
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      .row{
        width: 100%;
        height: calc(100%/3 - 10px);
      }
    }
    .col:nth-child(2){
      .row:nth-child(1){
        height: calc(100%/6 - 10px);
      }
      .row:nth-child(2){
        height: calc(100%/6*3 - 10px);
      }
    }
    .col:nth-child(3){
      .row{
        height: calc(100%/4*1.5 - 10px);
      }
      .row:nth-child(3){
        height: calc(100%/4 - 10px);
      }
    }
  }
}
</style>
